package com.red.star.macalline.data.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
import java.util.List;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/2/9.
 * C端用户发起聊天请求记录
 */
@Data
@Document(collection = "chat_request")
public class ChatRequest {

    @Id
    private String id;

    /**
     * C端用户ID
     */
    @Field(value = "c_fans_Id")
    private Integer cFansId;

    @Field(value = "create_time")
    private Date createTime;

    @Field(value = "update_time")
    private Date updateTime;

    /**
     * 单次发起的聊天请求
     */
    private List<ChatRequestItem> requests;

}
